
import type { IRouter } from "@/mytype";
import {defineStore} from "pinia";

export const useMenus = defineStore("menus",{
    state:()=>{
        return {
            menus:new Array<IRouter>()
        }
    },

    actions:{
        addMenus(menus:Array<IRouter>){
            this.menus = menus;
        }
    }
});